import request from '@/utils/request'

export function saveSupplierApplication(data) {
  return request({
    url: '/api/base/supplier_application/save',
    method: 'post',
    data
  })
}

export function updateSupplierApplicationForHandle(data) {
  return request({
    url: '/api/base/supplier_application/update_handle',
    method: 'post',
    data
  })
}

export function updateSupplierApplicationForAudit(data) {
  return request({
    url: '/api/base/supplier_application/update_audit',
    method: 'post',
    data
  })
}

export function updateSupplierApplicationForCancel(data) {
  return request({
    url: '/api/base/supplier_application/update_cancel',
    method: 'post',
    data
  })
}

export function pageSupplierApplication(data) {
  return request({
    url: '/api/base/supplier_application/page',
    method: 'post',
    data
  })
}

export function listPreOptions() {
  return request({
    url: '/api/base/supplier_application/list_pre_options',
    method: 'get'
  })
}
